package com.a01_2021.thousandstimes.saas.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author FRQ
 * @since 2021-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class OpenRecruitment extends Model<OpenRecruitment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableId(value = "instance_id")
    private Long instanceId;

    @TableId(value = "post_id")
    private Integer postId;

    @TableField("position_name")
    private String positionName;

    @TableField("city")
    private String city;

    @TableField("hr")
    private String hr;

    @TableField("company")
    private String company;

    @TableField("salary")
    private String salary;

    @TableField("requirement")
    private String requirement;

    @TableField("description")
    private String description;

    @TableField("start_time")
    private LocalDateTime startTime;

    @TableField("over_time")
    private LocalDateTime overTime;

    @TableField("state")
    private Integer  state;

    @TableField("number")
    private Integer  number;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
